/    Sign up×
Community /Pin to ProfileBookmark

..:: Help please ::..

I understand how enoying those pop up banners are and I DO NOT want to make one but….

I would like to have something pop up when a client clicks on a link (just a pop up)… been trying to figure it out but all the sites I look at “hide” the code and there’s nothing to be found…

ex. let’s say a client clicks on (contact) and WITHOUT going to another page with a pop up, how would i have the “pop up” excecute within the same page?

If you could help me out I would be grateful…

..:: Bro ::..

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@JonaFeb 20.2003 — Yup...

win = window.open("","winName","fullscreen=no,width=400,height=400,status=yes,menu=yes");

win.document.write("<HTML>")

win.document.write("The rest of your HTML document");

OR

Same as above just put this... win = window.open("filename.html",otherParams)
Copy linkTweet thisAlerts:
@____Bro____authorFeb 20.2003 — [i]Originally posted by Jona [/i]

[B]Yup...



win = window.open("","winName","fullscreen=no,width=400,height=400,status=yes,menu=yes");

win.document.write("<HTML>")

win.document.write("The rest of your HTML document");



OR



Same as above just put this... win = window.open("filename.html",otherParams) [/B]
[/QUOTE]


ya see i did the above (1st suggestion) here....

http://www.smartads.info/contact/ty <--- look at the code
Copy linkTweet thisAlerts:
@JonaFeb 20.2003 — Yes, here is the code they are using:

function openindex()

{

var OpenWindow=window.open("","Contact",

"height=150,width=350");

OpenWindow.document.write("<HTML>")

OpenWindow.document.write("<TITLE>Contact Us</TITLE>")

OpenWindow.document.write("<BODY BGCOLOR='FFFFFF'>")

OpenWindow.document.write("<CENTER>")

OpenWindow.document.write("<table width='335' border='0' cellspacing='0' cellpadding='0' height='150'>")

OpenWindow.document.write("<tr>")

OpenWindow.document.write("<td width='87'><img src='http://www.smartads.info/images/00-rev.JPG' alt='' height='151' width='87' border='0'></td>")

OpenWindow.document.write("<td>")

OpenWindow.document.write("<div align='center'>")

OpenWindow.document.write("Thank You for your submission!")

OpenWindow.document.write("<p>Please allow 48 hours<br>")

OpenWindow.document.write("for our team to respond.</p>")

OpenWindow.document.write("</div>")

OpenWindow.document.write("</td>")

OpenWindow.document.write("</tr>")

OpenWindow.document.write("</table>")

OpenWindow.document.write("</CENTER>")

OpenWindow.document.write("</HTML>")

}

And the body tag... <BODY Onload="openindex()">

Edit it as you like.
Copy linkTweet thisAlerts:
@____Bro____authorFeb 20.2003 — [i]Originally posted by Jona [/i]

[B]Yes, here is the code they are using:



function openindex()

{



var OpenWindow=window.open("","Contact",

"height=150,width=350");



OpenWindow.document.write("<HTML>")

OpenWindow.document.write("<TITLE>Contact Us</TITLE>")

OpenWindow.document.write("<BODY BGCOLOR='FFFFFF'>")

OpenWindow.document.write("<CENTER>")

OpenWindow.document.write("<table width='335' border='0' cellspacing='0' cellpadding='0' height='150'>")

OpenWindow.document.write("<tr>")

OpenWindow.document.write("<td width='87'><img src='http://www.smartads.info/images/00-rev.JPG' alt='' height='151' width='87' border='0'></td>")

OpenWindow.document.write("<td>")

OpenWindow.document.write("<div align='center'>")

OpenWindow.document.write("Thank You for your submission!")

OpenWindow.document.write("<p>Please allow 48 hours<br>")

OpenWindow.document.write("for our team to respond.</p>")

OpenWindow.document.write("</div>")

OpenWindow.document.write("</td>")

OpenWindow.document.write("</tr>")

OpenWindow.document.write("</table>")

OpenWindow.document.write("</CENTER>")

OpenWindow.document.write("</HTML>")



}

And the body tag... <BODY Onload="openindex()">

Edit it as you like. [/B][/QUOTE]


THAT WAS MY SITE LOL...

THX
Copy linkTweet thisAlerts:
@____Bro____authorFeb 20.2003 — I need something that DOESN'T go to another page!

It just pops a window when you click on the button!...
Copy linkTweet thisAlerts:
@JonaFeb 20.2003 — Yeah.. but that was what you asked for. Is there something else you needed?
Copy linkTweet thisAlerts:
@JonaFeb 20.2003 — Oh. OK, let's see..

<INPUT TYPE=button onClick="openindex()">

That good?
Copy linkTweet thisAlerts:
@____Bro____authorFeb 20.2003 — hmmm.. that might work... i'll give it a go... thank you!

..:: Bro ::..
×

Success!

Help @____Bro____ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...