I have trawled through various sites but have been unable to find a satisfactory solution.
What I would like to do is to embed a browser (preferable FF or Chrome) into a page and then send statements to the browser so it reflects what I am sending it. It is like a preview to help me perfect my instrctions.
Has anyone got experience of this or knows the best way to go about it?
Many thanks in advance,
What do you mean by "Embed a browser"?
Do you mean an image or an actual browser window?
Thanks for your time.
Why not just run the code in your browser, either by viewing the results on the page or in the console? Would those options work?
Could you expand about the console you mentioned. I don't know much about that. How would it shiow on a page and respond to statements I give it?
I only know the basics of it, but create a .html page, for example, with some JS in it. A simple example would be
var name = "Jack";
console.log("My name is " + name);
Now, open Chrome, click View > Developer > Developer Tools, and a window opens at the bottom of the browser. Click the Console tab, then refresh the page. You will see the output of the script at the in the Console window. (There are instructions for the Mac version of Chrome, but I assume it's similar on Windoze.)
You can type instructions in the Console, too, and thus interact with the browser.
This is a great video that shows what you can do with Chrome dev tools:
That was not quite what I was after, but thank you very much for your time and thoughts.
Are you trying to test a page for cross browser compatability?
No I want to feed a set of instructions (java components actually) into a browser and see the results - it is a screen designer I am after. I could use an external browser page, but that would not very user friendly
This topic is now closed. New replies are no longer allowed.