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

Pop up window

Status
Not open for further replies.

NewHere

Technical User
Sep 19, 2002
10
0
0
US


I am new to Javascript and just want to start with clicking on a link so it comes up as a pop up menu. Please advise how I would do this??
 
<a href=&quot;where.html&quot; target=&quot;_blank&quot;>word</a> ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 

Still no luck, any other advice on how to create a pop up window after clicking on a link???
 
in your head section put:
<head>
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
function popUp(URL) {
day = new Date();
id = day.getTime();
eval(&quot;page&quot; + id + &quot; = window.open(URL, '&quot; + id + &quot;', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=720,height=400,left = 45,top = 100');&quot;);
}
// End -->
</script>
----------------------------------------------------------
then for your link put:
<A HREF=&quot;javascript:popUp('your.htm')&quot;>What the link says</a>


Hope this helps
Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top