Posts tagged javascript
Q&A: JAVASCRIPT WITHOUT HTML?
Mar 19th
Question by :
Javascript WITHOUT HTML?
I’m trying to make a JSS code that you can copy+paste into your browser bar. I already have this code:
javascript:function reverse() { var inp = “.tset a si siht”;
var outp=”";for (i = 0; i < = inp.length; i++)
{ outp =inp.charAt (i) + outp;}alert(outp) ;}; reverse();
Which makes a popup box appear when you paste it into your browser bar (I know it's not necessary to reverse the plaintext, I am just doing it so I can learn as much as possible). I am trying to make TWO clickable buttons, one that states ok, and one that states cancel, both of which lead to different sites. I know how to do it in HTML JSS, but I cannot seem to make it work without being embedded in HTML. The HTML code for what I am looking for is as such:
If anyone could tell me how to integrate the options of the second script into the first, I’d be much appreciative!
Thanks guys!
(P.S. If you could tell me how to get rid of that pesky “Message From Webpage” text in the top of the box, that is extra credit ![]()
@ Robert: But if it’s possible to make the popup box by typing it into the address bar, why would the text of the buttons not be editable? I can change the text of the message… Why would I not be able to change the text of the buttons and the upper salutation?
@ Steve: That works wonderfully!
Thank you! But how would I incorporate the same reversed text in the boxes? I am still scratching my head on how to add that in…
Read More >>
Q&A: WHAT JAVA-SCRIPT HELP ME IN CRACKING ANY VIDEO FILE FROM ANY SITE WITHOUT ANY DOLLER AND HOW COULD IT POSSIBLE
Mar 17th
Question by jel_martyn:
what java-script help me in cracking any video file from any site without any DOLLER and how could it possible
what java-script help me in cracking any video file from any site and download it without any money and how could it possible?
Please answer me as soon as possible.
Read More >>
NEWBIE JAVASCRIPT ARRAY QUESTION. PLEASE HELP!?
Mar 10th
Question by unibumps:
Newbie JavaScript Array question. Please help!?
I’m new to JavaScripting and I am currently just trying out new things and seeing how they function to get a feel for the script syntax and functionality. With the script listed below, I was trying to create an array that would match up a person’s name with their job title, and when the user entered the user’s name into the text box and hit the submit button, it would pop up an alert with stated person’s job title.
Sounds simple enough, right? Well, I have been stumped for the past five hours, and no tutorial sites have given any clue as to how I can remedy this. I am trying to keep the literal notation (just to see how it works), but would not mind a dense notation if it’ll help me figure it out!
What it’s doing currently is looping through the array and displaying ALL of the names and then ALL of the job titles, and then changes the text box’s value to “John” or Engineer”, and I have tried numerous variations of the loop and if…else loops (including a “while” loop) and NO closer to a conclusion.
Thank you in advance!
Hopefully one day soon I will be laughing at questions like this.
Code (including basic body HTML):
- John
- Robert
- Felicia
- Jose
UPDATE:
I have since updated the JavaScript portion of the header to look as it does below (splitting the array into two separate arrays), but the only name that brings back the correct job is John (Engineer). The rest return the alert as "undefined".
Read More >>
HOW DO I USE JAVASCRIPT WITH A YAHOO SITE? I AM USING THE SAME SCRIPT I USE ON OTHER (PROFILE PAGES). PLACE?
Jan 7th
Question by Thomas M:
How do I use javascript with a yahoo site? I am using the same script I use on other (profile pages). Place?
How do I use javascript with a yahoo site? I am using the same script I use on other (profile pages). Is there a certain place where I have to insert the code?
I am using sitebuilder (the newest version).
an example of a code that is not working:
Awesome! The second answer gave me the hnt I needed. I changed the section (to the end) where I inserted the Java and ‘voila!’ it worked! The exact same code worked.
Read More >>
Q&A: HELP WITH JAVASCRIPT PLEASE?
Oct 31st
Question by The J-man:
Help with javascript please?
Hello my knowledge of javascript is basically nothing so I would like some help please. I will be using greasemonkey to run the script on a webpage. What I want is to display a small textbox messagebox or anything else on that page with a single string. It’s a game site and I have a really weird username I can remember the password but I know I will forget the username so I would like to be able to remind myself what my username is.
Read More >>
Q&A: CAN I USE JAVASCRIPT TO FIGURE BROWSER WINDOW HEIGHT INSIDE A CONDITIONAL STATEMENT?
Oct 6th
Question by Digital Golf:
Can I Use JavaScript To Figure Browser Window Height Inside A Conditional Statement?
My CSS tends to break on IE when the browser window get too small to contain all my content (the top of the content disappears).
I already have a conditional statement to add an IE stylesheet if that browser is present. I wanted to add the Javascript statement inside the conditional that will determine whether the window height is less than 750 pixels high. If that is the case, two CSS properties are added.
It hasn’t worked. Am I close, far off…just missing something?
Here is the conditional:
Read More >>
JAVASCRIPT USING VAR TO ENTER DOMAINS?
Sep 13th
Question by timbobelmo:
Javascript using var to enter domains?
My work uses this great code at the top their page….
Then in the HTML code the following is put to make it work:
When the page loads and the user views it it reads: src=" http://blah.images.com /lp/blahblah.jpg"
It automatically puts the domain information in case you need to change it. In my case, I'd like all items to point to ".com/future/" then when I am done with the new site simply change that original java script to remove the "future" and push the testing site live. My company uses .pd files…but that shouldn't make a difference. I have examined all the code and cannot make it work on my site, doesn’t look like I’m missing anything. Suggestions? Or maybe a different way to do this? I am using .php for my site. Thanks!
I NEED A SCRIPT LIKE HTML, PHP OR JAVASCRIPT TO SHOW POP UP BOX WHEN MY SITE OPENS ONLY IN INTERNET EXPLORER.?
Aug 23rd
Question by Kishan:
I need a script like html, php or javascript to show pop up box when my site opens only in world wide web explorer.?
I need a script like html, php or javascript to show pop up box when my site opens only in world wide web explorer. If someone has it or if someone knows that on which site i can get it then please inform me or email me about it. Contact – 02462231555/56, 09890681555, 09921681555, 09922681555.
Read More >>
HOW TO MAKE A COMBINATION LOCK JAVASCRIPT SCRIPT?
May 28th
Question by – Frozenwind -:
How to make a combination lock javascript script?
Okay, I have asked this question before, but now I need it modified..
I want it to be like this.
3 pull down menus. when the right combination is guessed, the user is sent a webpage, when the combination is guessed wrong, they are sent to a different page. Thanks to ElectroMan for the first script.
Code
—————–
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-…
Read More >>









