PDA

View Full Version : Hiding text in bar (using new window script)


eyeronik
01-25-2003, 05:24 PM
Hi, i need to hide what it says in the bottom left bar at the left when i click a link, but its not a normal link its a new window style one.

this is the code im using:

Code:
<SCRIPT language="JavaScript">
<!--
function n_window(theurl)
{
// set width and height
var the_width=750;
var the_height=500;
// set window position
var from_top=0;
var from_left=0;
// set other attributes
var has_toolbar='no';
var has_location='no';
var has_directories='no';
var has_status='no';
var has_menubar='no';
var has_scrollbars='yes';
var is_resizable='yes';
// atrributes put together
var the_atts='width='+the_width+',height='+the_height+',top='+from_top+',screenY='+from_top+',left='+fro m_left+',screenX='+from_left;
the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status ='+has_status;
the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;
// open the window
window.open(theurl,'',the_atts);
}
//-->
</SCRIPT>


Currently it says:

javascript:n_window('pathto/file/index.html');

This is no good, it also shows this if i right click it, i dont want people to know where the file is stored, does anyone know what i can do? is there anything i could add in my code to hide it?

redhead
01-25-2003, 05:57 PM
using <a href="#" onclick="javascript:n_window('pathto/file/index.html'); return false;">open window</a> should solve that problem

does that help? :thumbsup:

eyeronik
01-25-2003, 06:44 PM
no i need the window sizes and no toolbars, plus i use the nwindow for mulitply new windows opening on the same page not just one.

redhead
01-25-2003, 06:51 PM
erm... your question seems quite confusing... are you just trying to hide what the status bar says? <a ......... onmouseover="self.status='';" onmouseout="self.status='';"> :confused:

eyeronik
01-25-2003, 08:44 PM
basically i use that code i have to open new windows in a preffered size etc. The problem is the links, if i right click it shows the url, and in the bottom left title bar it shows the url too, i cant have it showing the url of where the file is as im selling the product and its a demo, i dont think its possible really is it,

whammy
01-26-2003, 01:29 AM
It's not really possible to completely hide the URL, as it will be available in your source code. And you absolutely, positively, cannot hide source code. If you have any doubts, do a search for "hide source code" on the forums before posting, please. :)