Current location: Hot Scripts Forums » General Web Coding » JavaScript » Need to hide web address in Java PopUp


Need to hide web address in Java PopUp

Reply
  #1 (permalink)  
Old 11-21-03, 04:22 PM
JAllard15 JAllard15 is offline
New Member
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Need to hide web address in Java PopUp

I'm putting a JavaScript PopUp on an HTML page and need to hide the web address. I've got the browser settings so that the address doesn't show up in the browser when they're on the site, but when the mouse rolls over the link, the address still appears at the bottom of the screen. Anybody know how to hide the address from the mouse roll over?

Thanks!!
Josh

jallard15@hotmail.com
Reply With Quote
  #2 (permalink)  
Old 12-22-03, 03:44 AM
sma sma is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
I think the following JScript example will help you.
Code:
<html>
<script language="jscript">
function onClick(){
      window.open("http://www.YOURSITE.com", "_top");
}
</script>
<body>
     <A href="jscript:onClick()">LINK1</A>
     <font onclick="jscript:onClick()">LINK2</font>
</body>
</html>
Reply With Quote
  #3 (permalink)  
Old 12-24-03, 12:36 PM
etLux etLux is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
  #4 (permalink)  
Old 12-24-03, 05:04 PM
gwx gwx is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Just to break down the code for you..

<html>
// tells browser what it is about to view is Javascript
<script language="javascript">
// Use the function/event onclick with no return
function onClick(){
// opens a new window , www.YOURSITE.com, place it on top
window.open("http://www.YOURSITE.com", "_top");
// closes the function
}
// closes the script
</script>

//to put in your body tags
<body>
// create a link that does the javascript function onClick and name //the link LINK1
<A href="javascriptnClick()">LINK1</A>
// the font onclick I do not know. maybe sma can tell me what it does??
<font onclick="javascriptnClick()">LINK2</font>
</body>
</html>
Reply With Quote
  #5 (permalink)  
Old 12-24-03, 05:05 PM
gwx gwx is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by JAllard15
I'm putting a JavaScript PopUp on an HTML page and need to hide the web address. I've got the browser settings so that the address doesn't show up in the browser when they're on the site, but when the mouse rolls over the link, the address still appears at the bottom of the screen. Anybody know how to hide the address from the mouse roll over?

Thanks!!
Josh

jallard15@hotmail.com
one more thing. Javascript and Java is different!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
We need more java talk rooshine Everything Java 4 05-08-04 10:44 PM
Trimming information off address dr00bie PHP 4 11-03-03 05:32 PM
Java forum name "everything java" esh Everything Java 0 10-13-03 09:05 AM
The World Is Breathing Java! fouad Everything Java 16 08-19-03 05:53 PM
Detecting Java Plug-in ZirconChief Everything Java 0 06-10-03 12:18 PM


All times are GMT -5. The time now is 11:25 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.