LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2006, 05:16 AM   #1
Manashi
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Rep: Reputation: 15
Question window.open() :- javascript


hi...

i hav created a link name CLICK...
when i wil click this link it should open a new window without title bar

the code that i hav written....

Quote:
printf("<p><a href=\"#\" onClick=\"javascript:window.open('candidate_start.php?candidate_id=$stuid&qpaper_id=$qpid&groupid=$g rpid', 'think_test',status=1,location=no,menubar=no,toolbars=no,scrollbars=yes ,fullscreen=yes'); return false;\">CLICK</a>");

if i am executing this code in windows its not giving the title bar but the same code for linux is showin the title bar....

my OS is linux...
what should i do to correct this problem..
 
Old 04-25-2006, 10:32 PM   #2
smallville
Member
 
Registered: Dec 2005
Posts: 44

Rep: Reputation: 15
you forgot to include tittlebar=no
 
Old 04-25-2006, 11:39 PM   #3
Manashi
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 15
i tried by including titlebar=no also bt same problem is cuming
 
Old 04-27-2006, 01:19 AM   #4
smallville
Member
 
Registered: Dec 2005
Posts: 44

Rep: Reputation: 15
try this:

<script language="JavaScript">
function jsfunction(strURL){
window.open(strURL, "_blank",
"height=300 width=400 scrollbars=yes titlebar=no");
}
</script>


then in your hyperlink call the function like this:

<a href="#" onclick="jsfunction('candidate_start.php')">CLICK</a>
 
Old 05-02-2006, 01:03 AM   #5
Manashi
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 15
i hav tried the above code also but there is no change
still the title bar is coming
 
Old 05-02-2006, 10:03 AM   #6
krizzz
Member
 
Registered: Oct 2004
Location: NY
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
I don't think there's a way to show window without the titlebar (like undecorated frame in Java). Use the divs to do it.
 
Old 05-02-2006, 10:03 AM   #7
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Danny Goodman's Dynamic HTML: The Definitive Reference (from O'Reilly Media, Inc.) says this about the titlebar parameter (my emphasis):
Quote:
Set this value to "no" to hide the titlebar. Signed script required.
Could the script's security status be the problem? Plus it seems to me that the client would be able to override this setting if they wanted. As a further note, Goodman says this parameter doesn't work with IE.
 
Old 05-03-2006, 05:25 AM   #8
Manashi
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 15
My OS is Linus and browser is Mozilla Firefox

the code that i am using is

Quote:
printf("<p><a href=\"#\" onClick=\"javascript:window.open('candidate_start.php?candidate_id=$stuid&qpaper_id=$qpid&groupid=$g rpid', 'think_test',status=1,location=no,menubar=no,toolbars=no,scrollbars=yes ,fullscreen=yes'); return false;\">CLICK</a>");

on linux its showin the titlebar but
when i am using the same code in Windows Browser is internet Explorer its not showing the title bar

does it has anything to do with the browser
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript - what to use rather than window.close() then window.open() davee Programming 2 04-11-2005 08:28 AM
open in same window burnt_toast Fedora 6 09-28-2004 11:45 PM
Only can open one window foxc98 Linux - General 3 08-09-2004 02:36 PM
Open a new Mozilla window linuxnube Linux - Software 3 05-17-2004 11:33 PM
Javascript: New Window Script trickykid Programming 1 03-22-2001 01:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration