Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Design Forum > HTML / CSS
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-12-2006, 05:51 PM   #1 (permalink)
Hayley11
Junior Member
 
Join Date: Mar 2006
Location: Greater Manchester
Posts: 12
Default javascript question

Hi

I've created some pop up windows on my wedding website and I would like to put a "close window" button on there, i'm assuming that I would use JavaScript for that but I can't find a script anywhere.

Any help would be appreciated.

Thanks

Hayley
Hayley11 is offline   Reply With Quote
Sponsored Links
Old 06-04-2006, 12:29 AM   #2 (permalink)
shane.carr
Junior Member
 
shane.carr's Avatar
 
Join Date: Jun 2006
Posts: 28
Default Re: javascript question

window.close() should work.

[HTML]
<button onclick="window.close();">Close Window</button>
[/HTML]

Last edited by shane.carr : 06-04-2006 at 12:32 AM.
shane.carr is offline   Reply With Quote
Old 06-05-2006, 08:27 AM   #3 (permalink)
ApeXX
Member
 
ApeXX's Avatar
 
Join Date: May 2006
Location: 127.0.0.1
Posts: 108
Default Re: javascript question

Just tried that out shane.carr and it worked for me. Nice job!
ApeXX is offline   Reply With Quote
Old 07-09-2006, 12:33 PM   #4 (permalink)
jazzyjazzy
Junior Member
 
Join Date: Jul 2006
Posts: 13
Default Re: javascript question

i dont know where to put my query so i am asking here.l wanted to know which is better for development of websites, HTML or JSP. Some says HTML is good but other says JSP is new with a better future, can u guide me. thnx
jazzyjazzy is offline   Reply With Quote
Old 07-09-2006, 07:33 PM   #5 (permalink)
SaRaN
Junior Member
 
Join Date: Jul 2006
Posts: 17
Send a message via AIM to SaRaN Send a message via MSN to SaRaN Send a message via Yahoo to SaRaN
Default Re: javascript question

Well to me I think HTML is alot better but thats just me....
SaRaN is offline   Reply With Quote
Old 08-02-2006, 09:36 PM   #6 (permalink)
shane.carr
Junior Member
 
shane.carr's Avatar
 
Join Date: Jun 2006
Posts: 28
Default Re: javascript question

XHTML is best, and some older browsers don't suppost JSP but they do support HTML; XHTML can be read as html but not the other way around, and therefore XHTML is the best in my opinion; also, they want to phase out HTML .
shane.carr is offline   Reply With Quote
Old 08-03-2006, 02:29 AM   #7 (permalink)
hairyfreak
Junior Member
 
Join Date: Aug 2006
Posts: 11
Default Re: javascript question

HTML isn't really a website development language, you can only really code layouts and suchlike with it. You would need a PHP, ASP or Java-based backend to actually make the website more interactive and provide some functionality. Otherwise the website would have to be a more informative rather than interactive one.
hairyfreak is offline   Reply With Quote
Old 08-03-2006, 06:45 PM   #8 (permalink)
shane.carr
Junior Member
 
shane.carr's Avatar
 
Join Date: Jun 2006
Posts: 28
Default Re: javascript question

Quote:
Originally Posted by hairyfreak
You would need a PHP, ASP or Java-based backend to actually make the website more interactive and provide some functionality.
Very true. The best of those is probably PHP or ASP, probably best PHP, because JSP is more like flash; It's just not really made for coding websites, if you know what I mean. And PHP outputs HTML too, so all browsers can read it. If you know javascript or actionscript, then PHP should come on easy. If you know applescript or DOS, then ASP would come on easier.
shane.carr is offline   Reply With Quote
Old 08-03-2006, 09:30 PM   #9 (permalink)
netridge
Webmaster Widget Admin
 
netridge's Avatar
 
Join Date: Jul 2006
Location: California
Posts: 551
Question Re: javascript question

Quote:
Originally Posted by shane.carr
window.close() should work.

[HTML]
<button onclick="window.close();">Close Window</button>
[/HTML]


is there a version of this that will work with firefox?
__________________
Webmaster Widget | Revenue Sharing Forum
netridge is offline   Reply With Quote
Old 08-03-2006, 10:07 PM   #10 (permalink)
shane.carr
Junior Member
 
shane.carr's Avatar
 
Join Date: Jun 2006
Posts: 28
Default Re: javascript question

Yes, there is.

<a href="#" onclick="self.close();return false;">Close Window</a>
shane.carr is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 12:51 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums