Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascriptpopup not working

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi i am trying to do a popup from a button on the page, and its not working

i have tried with loads of different popup codes gathered from the net and none of them work -

this is my current one:

i have this in the head tags of the html page:

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--
function NewWindow(url, windowName, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+' --
-- ,scrollbars='+scroll+',resizable';
win = window.open(url, windowName, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}
// -->
</SCRIPT>

and then in flash, i make a button press ctrl+alt+a click on get url and put this code in:

on (release) {
getURL(&quot;javascript:NewWindow('}

when i export and test it, nothing happens when i click the link

can anyone help ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top