user3907336
user3907336

Reputation: 31

how do i get my website on another website using javascript or jquery

I want to be able to make a script that will display my business admin site on another website so they can use it without having to go through installing it. I want to do what google does with their Translator:

<div id="google_translate_element"></div>
<script type="text/javascript">
  function googleTranslateElementInit() {
    new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
  }
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>

i would also like to keep track of the people that buy it and so i can terminate there connection if they are not paying there monthly fee or go against the t&c and the only way i can think of doing that is use a key that is saved in a db

Upvotes: 2

Views: 80

Answers (2)

Prasanga
Prasanga

Reputation: 1038

You can display another website using open window in javascript.

window.open("http://www.google.com");

Upvotes: 1

Alex Pan
Alex Pan

Reputation: 4571

You should look into iframes.

Iframe Syntax:

<iframe src="URL"></iframe>

Just add that to your html and replace "URL" with the url of the desired embedded site.

Upvotes: 2

Related Questions