Quote:
|
I want popup_player.html to be displayed and the page switch to live_popup.html. Popup works find but page change doesn't always work. Does anyone know how to do this?
|
Either the link or the button behavior are prone to fail because you are wrapping an <input> within a link <a> tag. It maybe be valid HTML but it is not a very good practice. I would suggest putting both actions on an <a> tag or on the button but don't combine them, try these:
HTML Code:
<form>
<center><a href="live_popup.html" onclick="javascript:popUp('/popup_player.html');">Open player in window</a></center>
</form>
HTML Code:
<form>
<center><input type="button" value="Open player in popup window"
onClick="javascript:popUp('/popup_player.html');window.location='live_popup.html'"></center>
</form>
I'd go for the first example but both should work.
Regards,