🚗🏍️ Welcome to Motoshare!

Turning Idle Vehicles into Shared Rides & New Earnings.
Why let your bike or car sit idle when it can earn for you and move someone else forward?

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Partners earn. Renters ride. Everyone wins.

Start Your Journey with Motoshare

Call JavaScript function on button click

JavaScript

In this tutorial, I am going to utilize a button that should count clicks.

Example:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <button onclick="doGet()">Click Here</button>

  <script type="text/javascript">
    console.log('hey im coming');
    function getSheetInfo(){
      const id = 'e90uwqru90aefja1';
      const ss = SpreadsheetApp.openById(id);
      console.log('ss me kya aa rha hai' + ss);
      
    }
    function doGet(e){
      const output = {
        first : 'Laurance',
        last : 'Svekis'
      }
      const strOutput = JSON.stringify(output);
      console.log('what is coming in str output'+strOutput);
    }

  </script>
</body>
</html>

OutPut:

0 0 votes
Article Rating
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
1
0
Would love your thoughts, please comment.x
()
x