Questions tagged [document.write]

A DOM Level 2 HTML method that writes a string of text to a document stream opened by document.open().

A DOM Level 2 HTML method that writes a string of text to a document stream opened by document.open().

487 questions
-2
votes
1 answer

How create a table in javascript

I'm trying create one simple thing, so let me try to explain, where it says "table here" is supposed appear one table with 4 columns and 6 lines of course, with content inside of cells. Unfortunately I don't know how make this in Javascript. Code…
-2
votes
1 answer

Not Working .innerHTML

I am a seller on eBay and I want to use JavaScript on eBay. I have successfully used document.write to put the source file of JavaScript. The problem is it not working This is my JavaScript: window.onload = function trackt(){ if (typeof…
-2
votes
2 answers

javascript document.write printing “<"

I am trying to print this text “” in document.write in javascript.But I am not able to print it.Because of the “<“ sign it is not printing.Need help.
-2
votes
1 answer

i need the document.write code for iframe

I want the document.write code to load a page(as iframe) example - i need document.write function to get http://google.com I dont want html function but as document.write
Athul
  • 29
  • 5
-2
votes
3 answers

How to print each line from textarea using innerHTML and javascript

For example, if I have the following text inside textarea: Then I want to use innerHTML and javascript to parse…
user3597168
  • 9
  • 1
  • 3
-2
votes
1 answer

document.write with img src

document.write("' /> where imgNumber is the value of the imgNumber variable."
-2
votes
1 answer

How to make a function for: document.write(" ")

Hi I want to shorten this: document.write(""). Instead i made my function: function myFunc() { document.write() } and I want that ill be able to modify it like this: myFunc("hello world") but it did not work.
-2
votes
2 answers

document.write won't write strings from a JavaScript File

I have been working with some code that i inherited at work and added some new things to it, but now, the data won't print. The code uses document.write and uses a .js file to help and store strings that are then printed in the JSP using…
user3183843
  • 57
  • 1
  • 9
-2
votes
2 answers

Can I use document.getElementById.write(); to write inside of heredoc?

I want to be able to edit something inside of a heredoc syntax. Something like this: index.php: $var = <<
Jordan
  • 21
  • 1
  • 2
  • 8
-2
votes
3 answers

Writing JS in PHP with document.write

This is failing but i dont know how to make it work. I have a php array: $swipe_list = array('customers.html', 'index.html', 'atr_backplane.html'); This is to know which pages have carousels and need touch support. so i check the page in php and if…
Razzor
  • 13
  • 1
  • 7
-2
votes
4 answers

Using a prompt to change text inside of a div

Ok so I have this simplified code of what I am trying to do on this page. I want the browser to display a prompt as soon as they load the page asking for their name. Once they answer what their name is it takes that variable (name) and writes it…
-2
votes
3 answers

javascript document.write() removes the html from page and display result in a blank page

Possible Duplicate: JavaScript - what are alternatives to document.write? i am creating a javascript function which i want to execute after few seconds but when it executes it removes all the page content and display only that result which i am…
Harish Kumar
  • 927
  • 3
  • 20
  • 46
-3
votes
1 answer

javascript function array variable an function schicken

ich brauche dringend Eure Hilfe, zur Verständnis. Im 1. Beispiel funktioniert mein Test Script normal. im 2. habe ich die beiden Abschnitte in jeweils eine Funktion gepackt und in der Console folgender Fehler angezeigt: Uncaught ReferenceError:…
Micha
  • 1
  • 3
-3
votes
2 answers

How to replace document.write with document.getElementById('ElementID').innerHTML

Just to let you know I am not a programmer. I try to understand some code and change it where I can using trial and error. I have the following piece of code from a Joomla module where I need to change in the function: function pausescroller the…
its4yougr
  • 65
  • 10
-3
votes
2 answers

document.write() Is Removing All Page Content When Calling After Page Load

I have a web page where I am reading Google Blogger blog category from his feed using JSON. I have two functions. First on is getting all the Blog Categories List and second one is taking Blog Categories from that and then hitting again Blog to get…
Muhammad Hassan
  • 1,224
  • 5
  • 31
  • 51
1 2 3
32
33