Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Hiding title bar

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know there is no direct solution for hiding title bar and disabling window's close(x) button using window.open() method. I gone through the posts that were related to this topic, the alternate solution given was using Modal Window. But not found any kind of examples of using Modal Window.
Can anyone help me out regarding this?

Thanks,
Deepa
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think This code will help you.


<SCRIPT>
function modalWin() {
if (window.showModalDialog) {
alert("this");
window.showModalDialog("index_html","name","dialogWidth:255px;dialogHeight:250px");
} else {
alert("not this");
window.open('index_html','name','height=255,width=250,toolbar=no,directories=no,status=no,linemenubar=no,scrollbars=no,resizable=no,modal=yes');
}
}
</SCRIPT>

<a href="index_html" target="name" onklick="modalWin(); return false;">click here</a>

thank you
 
Deepa More
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for quick reply. I tried your example, but it is displaying Close(x) button. I don't want to show that one as I am developing loading screen functionality in my app. So user should not be able to close it.

thanks again.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A modal window can be closed also. A window without a close button is a pop up ad spammers dream.

Eric
 
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In other words, it shouldn't and can't be done. Thank goodness.
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a way to hide the bar, but the user can still kill it by right clicking on the Windows taskbar or by hitting CTL-ALT-Delete, selecting task manager, and killing the application. Some spammers already know how, as I've been caught by these nasty things, however, I think it's irresponsible to spread that secret, so I won't tell you how it's done.

It's only for IE and probably only older versions.
[ February 14, 2007: Message edited by: Marc Luzietti ]
 
We can walk to school together. And we can both read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic