Well, after seeing the site http://bulltrue.net , I thought it would be really cool to have pictures of videos, that when clicked bring up that video in a popup. However, I didn't have a reason to make a site that did that until today when a guy had a video of him getting an extremely lucky splatter on Narrows. I Googled the JS code, and then made an app that did it for you with C#. (Yes, I'm a very bored person.) Anyways, onto features and picture.
Features:
Options for Toolbars, Scrollbars, etc.
Options on how the popup opens. (By a Link, a Button, or Automatically.)
Settings for Width and Height of the Pop Up Window.
<a href="" onclick="javascript:popUp('[LINK HERE]');return false;">Open the Popup Window</a>
That way it won't show the javascript code being executed in the status bar of the window. The return false at the end of the onclick makes it so that href is ignored.
I don't want the whole source. I just want to know if you found a nifty way to make the whole text creation thing...or is it simply just something like
No current browser would allow an executable to run without prompting the user. You cannot launch a program on the client's computer from Javascript with the current securities.
It's still possible to get a virus from malicious Javascript, or an xml file cached by a page, it doesn't have to be an executable though that is the most common way.
And thirst, are you gonna take my advice? I don't know about you but when I'm designing a webpage I hate having the script that I'm trying to run show up in the status bar, I'd rather have the name of the page show up. Here:
That's all I'm saying. I'm fully capable of writing all of this myself and it's been literally years since I've needed to use a code generator. I even wrote my myspace code by myself without any sort of guidance, I just trial-and-error'd everything. Anyways, I'm not saying I or anyone else wants to run something malicious using this, I'm saying from a asthetic point of view, having a load of Javascript in the status bar looks tacky...to me at least.
I like it but would it not make sense to make a javascript/HTML version of it? I don't know. Having it in the same language kind of makes sense to me. Also if you want multiple popups with different things (like one with and one without scrollbars) this wouldn't work. What about making the function contain those variables like: