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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop-up question.

Status
Not open for further replies.

Ivan1

Programmer
Jun 18, 2001
113
US
Hello.
I have a question about pop-ups.
What I'm tring to accomplish is create a button on my splash page that opens up the main website, and also opens up a specificaly sized pop-up without toolbar or scrollers. Can somebody help me out with that. Thank you.
Regards,
Ivan
 
Hi Ivan,

to open a new window you need:

1) script
function openWin(theUrl, theName, theParams) {
window.open(theUrl, theName, theParams)
}

2) call the script within a page. You may do it in two ways:
...<a href=&quot;javascript:eek:penWin('file_name.htm','window_name1','width=500,height=500,scrollbars=no,toolbar=no,resizable=yes')&quot;>...</a>...

or

...<a href=&quot;#&quot; onClick=&quot;openWin('file_name.htm','window_name1','width=500,height=500,scrollbars=no,toolbar=no,resizable=yes')&quot;>...</a>...




Good Luck! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top