View Full Version : pop up window


bradjr
09-19-2004, 06:21 PM
Know how in java script you can open up links with a new window?Well how do you do that with html?


************Im n00b

dilligaf
09-19-2004, 06:46 PM
If you mean a specific size/location you can't. For a new window <A HREF="mypage.htm" target="_blank">my link</A>

bradjr
09-20-2004, 05:18 AM
eh...i want a pop up on my site but it does have java.I only have html code.

for java i think the code is <a href="javascript:openWindow
('link.html',
'Game',500,550)">

is that the code you mean?
o

dilligaf
09-20-2004, 07:29 AM
Bradjr, Now I'm really lost. There are tons of free scripts and instructions for js pop ups on the web if that's what you meant.

http://www.hotscripts.com/JavaScript/Scripts_and_Programs/index.html

Cyber-SEO
09-20-2004, 07:48 AM
bradjr: Do something like this

You can do it with HTML like dilligaf said or you can do this.

<a href="javascript:openWindow()">Open Window</a>

<script language="javascript">
function openWindow(){
window.open("windowtoopen.html","NameOfWindow","toolbar=0")
}
</script>

hope this helps.

relaxzoolander
01-13-2005, 07:52 PM
this is a nice goodie---
http://www.w3schools.com/js/tryit.asp?filename=tryjs_openallwindow
.

jlknauff
01-14-2005, 09:02 AM
My guess is that he's on a free host that has a click & build type of thing.

In any case, you can still upload your own files. Then just add the code (.js) that a few people posted or link to an external script (on your server). If you can give us a url we can help you a bit better ;)

MKJ
05-20-2005, 03:54 PM
Hi

I wrote a bit of a tutorial on popup windows. You can read it here:

Popups (http://sites-4u.com/emails/websitedesigning/window_popups.htm)

The page needs updating but should provide enough information to get anyone started using popups. The font sizes are a bit messed up and the hyperlinks are not showing very well :o . More work to do doh.

You can always create a new window with adding target="_blank" to the url mind.

MKJ
Sites-4u (http://sites-4u.com)